app.config(function ($stateProvider, $urlRouterProvider) {
    $urlRouterProvider.otherwise('/');

    $stateProvider.state('main', {
        url: '/:select',
        templateUrl: './views/index.html',
        controller: 'mainController',
        // templateUrl: './views/lottery.html',
        // controller: 'lotteryController',
    })
    .state('view', {
        url:'/view/:problem_code',
        templateUrl: './views/view.html',
        controller: 'viewController',
        controllerAs: 'vm',
    })
    .state('lottery', {
        url:'/lottery',
        templateUrl: './views/lottery.html',
        controller: 'lotteryController',
    })
    .state('view.status', {
        url:'/status',
        templateUrl: './views/status.html',
        controller: 'viewStatusController',
    })
});
